home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 2
/
NetNews Offline Volume 2.iso
/
news
/
comp
/
std
/
c
/
505
< prev
next >
Wrap
Internet Message Format
|
1996-08-06
|
2KB
Path: news.crystalball.com!news
From: Larry Weiss <lfw@oc.com>
Newsgroups: comp.unix.aix,gnu.misc.discuss,comp.std.c
Subject: C Standard library
Date: Mon, 04 Mar 1996 13:47:40 -0600
Organization: crystalball.com
Message-ID: <313B48DC.73DF@oc.com>
References: <4hf5ir$u4@Dortmund.Germany.EU.net> <4hf6hn$1fa@solutions.solon.com>
NNTP-Posting-Host: external.oc.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0 (Win16; I)
CC: lfw@oc.com
Peter Seebach wrote:
>
> Zsolt Koppany <zkoppany@multix.de> wrote:
> >I would like to use on add-on malloc package on AIX 4.1 with gnu-c 2.7,
> >but I see that the standard libraries don't take the malloc I want to link.
> >The program below shows my problem:
> >void* malloc(int n)
> >{
> > printf("This AIX works fine\n");
> > exit(0);
> >}
> >main()
> >{
> > printf(strdup("This AIX has troubles\n"));
> > exit(1);
> >}
> >When I start the program it prints "This AIX has troubles" to the screen
> >so not "my" malloc has been called.
> According to C, anyway, you're S.O.L. - there is no legal way to replace
> standard library functions.
>
That fact is the most extreme thing that the C Standardization committee
did to the C programming language. It changed the very nature of the
Standard library. I know that there are reasons they did it, but I don't
think that even yet, the fact that they did it has come "home" to most
programmers.